"use client"
import React, {useState} from "react";

export default function Template({children}: { children: React.ReactNode }) {
    const [count, setCount] = useState(0)
    return <div>
        <div>template's count: {count}</div>
        <button className='border-black border-2'
                onClick={() => setCount(count + 1)}>count + 1
        </button>
        {children}
    </div>
}